﻿//-----------------------------------------------------------------------
// <copyright file="BootStrapper.cs" company="OverrideThis">
//     Copyright (c) 2010 OverrideThis.com
// </copyright>
//-----------------------------------------------------------------------
namespace OverrideThis.ContactManager
{
    using OverrideThis.ContactManager.Infrastructure.IoC;
    using OverrideThis.Core.Infrastucture.IoC;
    using StructureMap;

    public class BootStrapper
    {

        public BootStrapper()
        {
        }

        public void BootStrap(string connKey)
        {           
            ObjectFactory.Initialize(
                cfg => {
                    cfg.IncludeRegistry<CoreDependencyRegistry>();   
                    cfg.IncludeRegistry(new ContactManagerDependencyRegistry(connKey));
                });
        }
    }
}
